﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Back/Shared/BackBBSSite.Master" Inherits="System.Web.Mvc.ViewPage<Wwtfly.BBS.BackModels.ViewModels.ExpertNews.ExpertNewsShowsViewModel>" %>
<%@ Import Namespace="Wwtfly.Utility" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm(Html.GetEditActionName(Model.ExpertNewsShows.Id),"BackExpertNews")) {%>
        <%= Html.ValidationSummary(true) %>
        <%=Html.HiddenFor(mc=>mc.ExpertNewsShows.Id) %>
        <fieldset>
            <legend>专题方案编辑</legend>
          <div class="editor-label-field-row">
            <div class="editor-label">
                 方案ID
            </div>
            <div class="editor-field">
                <%= Html.LabelFor(model => model.ExpertNewsShows.Id)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
               方案标题
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ExpertNewsShows.Extitle)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
          <div class="editor-label-field-row">
            <div class="editor-label">
              方案关键词
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ExpertNewsShows.Keyword)%>
            </div>
        </div>
        <div class="blank_2">
        </div>

         <div class="editor-label-field-row">
            <div class="editor-label">
              方案描叙
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.ExpertNewsShows.Exmiaoshu,4,30, new { @class = "w225" })%>
            </div>
        </div>
        <div class="blank_2">
        </div>
               <div class="editor-label-field-row">
            <div class="editor-label">
              方案发表时间
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model=>model.ExpertNewsShows.Uptime)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
                    <div class="editor-label-field-row">
            <div class="editor-label">
              方案结束时间
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model=>model.ExpertNewsShows.Endtime)%>
            </div>
        </div>
        <div class="blank_2">
        </div>

         <div class="editor-label-field-row">
            <div class="editor-label">
              方案内容
            </div>
            <div class="editor-field">
                 <%= Html.TextAreaFor(model => model.ExpertNewsShows.Scheme, new { id = "ExpertNewsScheme" })%>
            </div>
        </div>
        <div class="blank_2">
        </div>
        
         <div class="editor-label-field-row">
            <div class="editor-label">
              方案访问彩币
            </div>
            <div class="editor-field">
                 <%= Html.TextBoxFor(model => model.ExpertNewsShows.ColourMoney)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
             <div class="editor-label-field-row">
            <div class="editor-label">
             浏览数量
            </div>
            <div class="editor-field">
                 <%= Html.TextBoxFor(model => model.ExpertNewsShows.ClickSum)%>
            </div>
        </div>
        <div class="blank_2">
        </div>
        <div class="editor-label-field-row">
            <div class="editor-label">
             审核信息
            </div>
            <div class="editor-field">
                <%=Html.RadioButton("ExpertNewsShows.CheckMsg","1",true)%>已审核
                <%=Html.RadioButton("ExpertNewsShows.CheckMsg","0")%>未审核
       
            </div>
        </div>
        <div class="blank_2">
        </div>
                <div class="editor-label-field-row">
            <div class="editor-label">
             备注
            </div>
            <div class="editor-field">
               <%= Html.TextAreaFor(model => model.ExpertNewsShows.ExperRemark, 4, 30, new {@class="w225" })%>
            </div>
        </div>
        <div class="blank_2">
        </div>
        <p>
      <% string returnUrl = Request.GetRequestReturnUrl("returnUrl", Url.Action("Index")); %>
      <input type="submit" value="保存" id="btn_save" url=" <%=returnUrl %>" />
            &nbsp;
            <%=Html.Button("返回", "btn_return", new { url = returnUrl })%>
        </p>
        </fieldset>

    <% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="<%=Url.Content("~/Content/ckeditor/ckeditor.js") %>" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            window.validateForm = function () { return true; };
            window.ajaxForm();
            window.unloadForm();
            CKEDITOR.replace('ExpertNewsScheme');

            //在jquery 序列化 数据之前,事件
            $("form").bind('form-pre-serialize', function (event, form, options, veto) {
                //从编辑器拿值
                var objcet = eval("(CKEDITOR.instances.newsContent)");
                if (objcet != null) {
                    $("#ExpertNewsScheme").val(objcet.getData());
                }
            });
        });
    
    </script>
</asp:Content>